#include "../MonitorUI/sdbusServer.hpp"
#include <iostream>
#include <unistd.h>

int main()
{
  sdbusServer server;
  server.SetRecordStatus=[&](bool val){
    std::cout<<"SetRecordStatus: "<<val<<std::endl;
  };
  server.SetMobileConnectStatus=[&](bool val){
    std::cout<<"SetMobileConnectStatus: "<<val<<std::endl;
  };
  std::cout<<"sdbusServer Init:"<<std::endl;
  server.Boot();
  std::cout<<"sdbusServer Init Finish"<<std::endl;
  std::cout<<"semSize: "<<server.GetBufferSize()<<std::endl;
  auto semIDList=server.GetBufferID();
  for(auto & i : semIDList)
    std::cout<<">>> "<<i<<std::endl;

  while(sleep(10)==0) ;
}
